/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author Estêvão
 */
@Entity
@PrimaryKeyJoinColumn(name="id")
public class PessoaFisica extends Pessoa implements Serializable {

    @Column(name="cpf", unique = true, nullable = false, insertable = true, updatable = true, length = 11)
    private String cpf;

    @Column(name="rg")
    private String rg;

    public String getCpf() {
        return cpf;
    }

    public void setCpf(String cpf) {
        this.cpf = cpf;
    }

    public String getRg() {
        return rg;
    }

    public void setRg(String rg) {
        this.rg = rg;
    }

}
